#ifndef _MY_HTTP_SERVER_H_
#define _MY_HTTP_SERVER_H_

#include "NIOServer.h" 
#include "HqHttpHead.hpp"
#include "config.h" 
#include "tools.h"
#include "mythreadpool.hpp"

// 继承NIOServer
class MyHttpServer: public NIOServer{
private: 

public: 
    MyHttpServer(std::string host, int port, int thread_pool_num=8);
    int unpack_and_pack(char *&buf, int offset, int fd) override ;
};

void testMyHttpServer();

#endif // _MY_HTTP_SERVER_H_